package com.ruoyi.manage.cms.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.cms.domain.HbCase;
import com.ruoyi.manage.cms.mapper.HbCaseMapper;
import com.ruoyi.manage.cms.service.IHbCaseService;
import org.springframework.stereotype.Service;


/**
 * caseService业务层处理
 *
 * @author ruoyi
 * @date 2025-07-23
 */
@Service
public class HbCaseServiceImpl extends ServiceImpl<HbCaseMapper, HbCase> implements IHbCaseService{


    @Override
    public HbCase queryGetById(String id){
        HbCase hbCase = this.getById(id);
        return hbCase;
    }

    /**
     * 新增case
     *
     * @param hbCase case
     * @return 结果
     */
    @Override
    public boolean addHbCase(HbCase hbCase){
        boolean save =this.save(hbCase);
        return save;
    }

    /**
     * 修改case
     *
     * @param hbCase case
     * @return 结果
     */
    @Override
    public boolean updateHbCase(HbCase hbCase){
        return this.updateById(hbCase);
    }

    /**
     * 批量删除case
     *
     * @param ids 需要删除的case主键
     * @return 结果
     */
    @Override
    public boolean deleteHbCaseByIds(String[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
